Arrays
An Example
w#include <iostream.h>
w int main() {
w int x, y, anarray[8][8];//declares an array like a chessboard
w for(x=0; x<8; x++) { // sets the element to
w for(y=0; y<8; y++) { // zero; after the loop all
w anarray[x][y]=0; // elements == 0
w } }
w for(x=0; x<8;x++) {
w for(y=0; y<8; y++) { cout<<"anarray["<<x<<"]["<<y<<"]="<<anarray[x][y]<<" ";
w} }
w return 0;
w}

| Here you see that the loops work well because they increment the variable for you, and you only need to increment by one. Its the easiest loop to read, and you access the entire array.